package net.similarsu.device.sdk.dah.struct;

import com.sun.jna.Pointer;
import com.sun.jna.Structure;

@Structure.FieldOrder({
        "emType"
        , "nOffSet"
        , "nLength"
        , "nWidth"
        , "nHeight"
        , "byReserved"
})
public class DEV_ACCESS_CTL_IMAGE_INFO extends Structure {
    public int emType;                                                    // 图片类型, 参考 EM_ACCESS_CTL_IMAGE_TYPE
    public int nOffSet;                                                // 二进制块偏移字节
    public int nLength;                                                // 图片大小
    public int nWidth;                                                    // 图片宽度(单位:像素)
    public int nHeight;                                                // 图片高度(单位:像素)
    public byte[] byReserved = new byte[64];                                // 保留字节

    public DEV_ACCESS_CTL_IMAGE_INFO() {
        super();
    }

    public DEV_ACCESS_CTL_IMAGE_INFO(Pointer pointer) {
        super(pointer);
    }

    public static class ByReference extends DEV_ACCESS_CTL_IMAGE_INFO implements Structure.ByReference {
    }


    public static class ByValue extends DEV_ACCESS_CTL_IMAGE_INFO implements Structure.ByValue {
    }

}